package com.jade.zsy.base.vo;

import com.jade.bss.base.utils.EntityVo;
import com.jade.zsy.base.common.StatusConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;

/**
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2017/6/3
 * Time: 12:59
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@ApiModel(value ="仓库管理")
public class WarehouseVo extends EntityVo {
    @ApiModelProperty(value = "编码")
    @Column(name = "code", nullable = false, updatable = false)
    private String code;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "联系人手机")
    private String phone;//联系方式
    @ApiModelProperty(value = "联系人")
    private String person;//person
    @ApiModelProperty(value = "是否默认")
    private int isDefault=0;
    @ApiModelProperty(value = "排序")
    private int sequence=0;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty (value = "状态")
    private int status= StatusConstant.RECORD_INIT; /** 状态  0：正常  9：已停用 **/
    @ApiModelProperty (value = "状态")
    private String statusDesc; /** 状态  0：正常  9：已停用 **/
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public int getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(int isDefault) {
        this.isDefault = isDefault;
    }

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusDesc() {
        return StatusConstant.getDesc(status);
    }
}
